From 6c481bbbf273773aac14a54a113e4da3e9a1d507 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 17 Jun 2010 00:16:50 +0100 Subject: [PATCH] SparkleRepo: make some methods private where it makes sense --- SparkleShare/SparkleRepo.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SparkleShare/SparkleRepo.cs b/SparkleShare/SparkleRepo.cs index 203108f6..e291fe59 100644 --- a/SparkleShare/SparkleRepo.cs +++ b/SparkleShare/SparkleRepo.cs @@ -146,7 +146,7 @@ namespace SparkleShare { } // Starts a time buffer when something changes - public void OnFileActivity (object o, FileSystemEventArgs args) + private void OnFileActivity (object o, FileSystemEventArgs args) { WatcherChangeTypes wct = args.ChangeType; if (!ShouldIgnore (args.Name)) { @@ -157,7 +157,7 @@ namespace SparkleShare { // A buffer that will fetch changes after // file activity has settles down - public void StartBufferTimer () + private void StartBufferTimer () { FetchTimer.Stop (); @@ -362,7 +362,7 @@ namespace SparkleShare { } // Ignores Repos, dotfiles, swap files and the like. - public bool ShouldIgnore (string FileName) { + private bool ShouldIgnore (string FileName) { if (FileName.Substring (0, 1).Equals (".") || FileName.Contains (".lock") || FileName.Contains (".git") || @@ -375,7 +375,7 @@ namespace SparkleShare { } // Creates a pretty commit message based on what has changed - public string FormatCommitMessage () + private string FormatCommitMessage () { bool DoneAddCommit = false;