]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - lib/prune/plugins/dovecot.rb
Simplify prune plugins and fix array difference error.
[mailshears.git] / lib / prune / plugins / dovecot.rb
index 88e5c1cb875351293758c945608f8a1a5f363590..7d346ac23b22adce05fe92b46716f7614abb9c47 100644 (file)
@@ -2,25 +2,5 @@ require 'prune/prune_plugin'
 require 'rm/plugins/dovecot'
 
 class DovecotPrune < DovecotRm
 require 'rm/plugins/dovecot'
 
 class DovecotPrune < DovecotRm
-
   include PrunePlugin
   include PrunePlugin
-
-
-  def get_leftover_domains(db_domains)
-    # Get the list of domains according to the filesystem.
-    fs_domains = self.list_domains()
-
-    # Return the list of domains on the filesystem that aren't in the DB.
-    return (fs_domains - db_domains)
-  end
-
-  def get_leftover_accounts(db_accounts)
-    # Get the list of accounts according to the filesystem.
-    fs_domains = self.list_domains()
-    fs_accounts = self.list_domains_users(fs_domains)
-
-    # And return the accounts on the filesystem that aren't in the DB.
-    return (fs_accounts - db_accounts)
-  end
-
 end
 end