Hi Robert,
In your case since you have backup as well as logs until current working day , database restore is good option. Incase you know the time when you delete the piece of code, you may restore the logs to the timestamp before that.
How to Restore until a specific date and time
It is possible to restore to a specific point in time. For example you know date and time of an unwanted bigger change to the database which you want to make undone. So you can recover the database to a point in time just before this unwanted change was done. After restoring the last data backup before the particular point in time the following command can be used:
dbmcli on DB1> recover_start <medium_name> <backup_type> <nnn> UNTIL <date> <time>
for the example above:
dbmcli on DB1> recover_start Log01 log 001 until 20081104 173000
In this example the log will be restored until November 04, 17:30:00 and the database is switching to mode ONLINE afterwards automatically. Please note that the time has to be entered in 24-hour mode (5:30pm -> 17:30).
For different options on database restore refer the link below.
http://wiki.sdn.sap.com/wiki/display/MaxDB/HowTo+-+SAP+MaxDB+recovery+with+Database+Manager+CLI
Regards,
Deepak Kori