summaryrefslogtreecommitdiff
path: root/visibility.c
diff options
context:
space:
mode:
Diffstat (limited to 'visibility.c')
-rw-r--r--visibility.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/visibility.c b/visibility.c
index 35bdd97..1213f89 100644
--- a/visibility.c
+++ b/visibility.c
@@ -10,12 +10,6 @@
// --- cVisibility -----------------------------------------------------------
-#ifdef DEBUG_VISIBILITY
-int cVisibility::getCount = 0;
-int cVisibility::readCount = 0;
-int cVisibility::accessCount = 0;
-#endif
-
cVisibility::cVisibility(const char *fileName) {
hiddenFileName = AddDirectory(fileName, "duplicates.hidden");
visibility = UNKNOWN;
@@ -26,9 +20,6 @@ cVisibility::cVisibility(const cVisibility &Visibility) :
visibility(Visibility.visibility) {}
eVisibility cVisibility::Get(void) {
-#ifdef DEBUG_VISIBILITY
- getCount++;
-#endif
return visibility;
}
@@ -37,13 +28,7 @@ void cVisibility::Set(bool visible) {
}
eVisibility cVisibility::Read(void) {
-#ifdef DEBUG_VISIBILITY
- readCount++;
-#endif
if (visibility == UNKNOWN) {
-#ifdef DEBUG_VISIBILITY
- accessCount++;
-#endif
visibility = access(hiddenFileName, F_OK) == 0 ? HIDDEN : VISIBLE;
}
return visibility;
@@ -66,10 +51,3 @@ bool cVisibility::Write(bool visible) {
return false;
}
-#ifdef DEBUG_VISIBILITY
-void cVisibility::ClearCounters(void) {
- getCount = 0;
- readCount = 0;
- accessCount = 0;
-}
-#endif