From 8853161a81df93fb7ddb36e5dc2991f40fd230f0 Mon Sep 17 00:00:00 2001 From: Chris Jaekl Date: Fri, 13 Mar 2020 20:32:47 -0400 Subject: [PATCH] Housekeeping: remove commented-out code. --- store.rb | 11 ----------- 1 file changed, 11 deletions(-) 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) -- 2.30.2