Skip to content

Commit

Permalink
Postgres::truncate(): Delete disused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
okinaka committed Sep 5, 2013
1 parent 85e4716 commit e0f24d0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/Cake/Model/Datasource/Database/Postgres.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ public function truncate($table, $reset = false) {
$this->cacheSources = $cache;
}
if ($this->execute('DELETE FROM ' . $this->fullTableName($table))) {
$schema = $this->config['schema'];
if (isset($this->_sequenceMap[$table]) && $reset != true) {
foreach ($this->_sequenceMap[$table] as $sequence) {
list($schema, $sequence) = explode('.', $sequence);
Expand Down

0 comments on commit e0f24d0

Please sign in to comment.