[Pkg-owncloud-commits] [owncloud-client] 270/498: Removed dead code from csync_utils. Functionality moved to Qt based code.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 3aed7fc0beab805f20ea9dc288454a7574dc6b8f
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Thu Jul 2 14:28:39 2015 +0200

    Removed dead code from csync_utils. Functionality moved to Qt based code.
---
 csync/src/csync_util.c | 25 -------------------------
 csync/src/csync_util.h |  2 --
 2 files changed, 27 deletions(-)

diff --git a/csync/src/csync_util.c b/csync/src/csync_util.c
index c6e7f66..d9e27b7 100644
--- a/csync/src/csync_util.c
+++ b/csync/src/csync_util.c
@@ -103,31 +103,6 @@ void csync_memstat_check(void) {
   CSYNC_LOG(CSYNC_LOG_PRIORITY_INFO, "Memory: %dK total size, %dK resident, %dK shared",
                  m.size * 4, m.resident * 4, m.shared * 4);
 }
-#if 0
-void csync_win32_set_file_hidden( const char *file, bool h ) {
-#ifdef _WIN32
-  const mbchar_t *fileName;
-  DWORD dwAttrs;
-  if( !file ) return;
-
-  fileName = c_utf8_to_locale( file );
-  dwAttrs = GetFileAttributesW(fileName);
-
-  if (dwAttrs != INVALID_FILE_ATTRIBUTES) {
-      if (h && !(dwAttrs & FILE_ATTRIBUTE_HIDDEN)) {
-          SetFileAttributesW(fileName, dwAttrs | FILE_ATTRIBUTE_HIDDEN );
-      } else if (!h && (dwAttrs & FILE_ATTRIBUTE_HIDDEN)) {
-          SetFileAttributesW(fileName, dwAttrs & ~FILE_ATTRIBUTE_HIDDEN );
-      }
-  }
-
-  c_free_locale_string(fileName);
-#else
-    (void) h;
-    (void) file;
-#endif
-}
-#endif
 
 bool (*csync_file_locked_or_open_ext) (const char*) = 0; // filled in by library user
 void set_csync_file_locked_or_open_ext(bool (*f) (const char*));
diff --git a/csync/src/csync_util.h b/csync/src/csync_util.h
index cceb71c..f8d02df 100644
--- a/csync/src/csync_util.h
+++ b/csync/src/csync_util.h
@@ -30,7 +30,5 @@ const char *csync_instruction_str(enum csync_instructions_e instr);
 
 void csync_memstat_check(void);
 
-// void csync_win32_set_file_hidden( const char *file, bool hidden );
-
 bool csync_file_locked_or_open( const char *dir, const char *fname);
 #endif /* _CSYNC_UTIL_H */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list