Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
removed obsolete code & spec
  • Loading branch information
Oleg Andreev committed Jun 8, 2008
1 parent 65067ff commit 518bb24
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 89 deletions.
13 changes: 0 additions & 13 deletions lib/strokedb/store.rb
Expand Up @@ -39,20 +39,7 @@ def head_version(uuid)
def save!(doc)
next_timestamp!
storage.save!(doc, timestamp)

update_views!(doc)

# TODO: remove this shit
if @index_store
if doc.previous_version
raw_pdoc = find(doc.uuid,doc.previous_version,:no_instantiation => true)
pdoc = Document.from_raw(self,raw_pdoc.freeze,:skip_callbacks => true)
pdoc.extend(VersionedDocument)
@index_store.delete(pdoc)
end
@index_store.insert(doc)
@index_store.save!
end
end

def save_as_head!(doc)
Expand Down
76 changes: 0 additions & 76 deletions spec/integration/search_spec.rb

This file was deleted.

0 comments on commit 518bb24

Please sign in to comment.