From: Chris Jaekl Date: Sat, 14 Mar 2020 00:32:47 +0000 (-0400) Subject: Housekeeping: remove commented-out code. X-Git-Url: http://jaekl.net/gitweb/?a=commitdiff_plain;h=8853161a81df93fb7ddb36e5dc2991f40fd230f0;p=quanlib.git Housekeeping: remove commented-out code. --- diff --git a/store.rb b/store.rb index 1ce5fd4..7494b8d 100644 --- a/store.rb +++ b/store.rb @@ -33,8 +33,6 @@ class Store end def connect - # @conn = PGconn.connect('localhost', 5432, '', '', 'quanlib', 'quanlib', 'quanlib') - # @conn = PG.connect(@dbhost, @dbport, '', '', @dbname, @dbuser, @dbpass) @conn = TimedConn.new(PG.connect(@dbhost, @dbport, '', '', @dbname, @dbuser, @dbpass)) return @conn end @@ -291,15 +289,12 @@ EOS end def find_classification(author_grouping, title_grouping) - #puts 'find_classification("' + author_grouping.inspect + '", "' + title_grouping.inspect + '")...' sql = "SELECT id FROM Classifications WHERE author_grouping = $1 AND title_grouping = $2;" @conn.exec_params(sql, [author_grouping, title_grouping]) do |rs| if rs.ntuples > 0 - #puts ' --> ' + rs[0]['id'].inspect return rs[0]['id'] end end - #puts ' --> NIL' return nil end @@ -345,12 +340,6 @@ EOS fullpath = @basePath + '/efs/' + efspath + '/' + efsname return Cover.new(nil, fullpath, mime_type) - - #File.open(fullpath, 'rb') do |is| - # return Cover.new(is, fullpath, mime_type) - #end - # - #return nil end def store_cover(book)