Skip to content

Commit

Permalink
BPathMonitor: Remove unused headers, some whitespace cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmlr committed Nov 7, 2015
1 parent 8599f4b commit c869b2b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/kits/storage/PathMonitor.cpp
Expand Up @@ -14,10 +14,6 @@
#include <pthread.h>
#include <stdio.h>

#include <map>
#include <new>
#include <set>

#include <Autolock.h>
#include <Directory.h>
#include <Entry.h>
Expand Down Expand Up @@ -185,7 +181,7 @@ class Ancestor {
fIsDirectory = S_ISDIR(st.st_mode);

// start watching
uint32 flags = fChild == NULL ? pathFlags : B_WATCH_DIRECTORY;
uint32 flags = fChild == NULL ? pathFlags : B_WATCH_DIRECTORY;
// In theory B_WATCH_NAME would suffice for all existing ancestors,
// plus B_WATCH_DIRECTORY for the parent of the first not existing
// ancestor. In practice this complicates the transitions when an
Expand Down Expand Up @@ -582,7 +578,7 @@ class PathHandler : public BHandler {

status_t _AddNode(const node_ref& nodeRef,
bool isDirectory, bool notify,
Entry* entry = NULL, Node** _node = NULL);
Entry* entry = NULL, Node** _node = NULL);
void _DeleteNode(Node* node, bool notify);
Node* _GetNode(const node_ref& nodeRef) const;

Expand All @@ -605,7 +601,7 @@ class PathHandler : public BHandler {
void _NotifyEntryMoved(const entry_ref& fromEntryRef,
const entry_ref& toEntryRef,
const node_ref& nodeRef,
const char* fromPath, const char* path,
const char* fromPath, const char* path,
bool isDirectory, bool wasAdded,
bool wasRemoved) const;
void _NotifyTarget(BMessage& message,
Expand Down

0 comments on commit c869b2b

Please sign in to comment.