diff options
author | Florin Peter <github@florin-peter.de> | 2013-05-15 21:01:03 +0200 |
---|---|---|
committer | Florin Peter <github@florin-peter.de> | 2013-05-15 21:01:03 +0200 |
commit | ec2e193a4413fa2d02ab6d127b1697294330e2bf (patch) | |
tree | 16e6ffbe8d2194aec0e3b51f63ff6093b9308d7f /apps/files_encryption/hooks | |
parent | 5fcb5f3aba90e24762d031ea4481ce65e34c018f (diff) | |
download | nextcloud-server-ec2e193a4413fa2d02ab6d127b1697294330e2bf.tar.gz nextcloud-server-ec2e193a4413fa2d02ab6d127b1697294330e2bf.zip |
removed unused code
Diffstat (limited to 'apps/files_encryption/hooks')
-rw-r--r-- | apps/files_encryption/hooks/hooks.php | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/apps/files_encryption/hooks/hooks.php b/apps/files_encryption/hooks/hooks.php index 16e9f9177d7..8f03087e568 100644 --- a/apps/files_encryption/hooks/hooks.php +++ b/apps/files_encryption/hooks/hooks.php @@ -169,33 +169,6 @@ class Hooks { }
}
-
- /**
- * @brief update the encryption key of the file uploaded by the client
- */
- public static function updateKeyfile( $params ) {
-
- if ( Crypt::mode() == 'client' ) {
-
- if ( isset( $params['properties']['key'] ) ) {
-
- $view = new \OC_FilesystemView( '/' );
- $userId = \OCP\User::getUser();
-
- Keymanager::setFileKey( $view, $params['path'], $userId, $params['properties']['key'] );
-
- } else {
-
- \OC_Log::write(
- 'Encryption library', "Client side encryption is enabled but the client doesn't provide a encryption key for the file!"
- , \OC_Log::ERROR
- );
-
- }
-
- }
-
- }
/*
* @brief check if files can be encrypted to every user.
@@ -426,17 +399,6 @@ class Hooks { }
/**
- * @brief
- */
- public static function postUnshareAll( $params ) {
-
- // NOTE: It appears that this is never called for files, so
- // we may not need to implement it
-
- }
-
-
- /**
* @brief after a file is renamed, rename its keyfile and share-keys also fix the file size and fix also the sharing
* @param array with oldpath and newpath
*
|