Cross merge with CSR.
[profile.git] / .vim / perforce / p4Utils.sh
diff --git a/.vim/perforce/p4Utils.sh b/.vim/perforce/p4Utils.sh
deleted file mode 100755 (executable)
index bcc92c6..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-# Get the list of unopened files under the given $1/$2 directory.
-#   It should be possible to implement the logic by using temp files and diff,
-#   but this was more challenging to me :)
-# Ex:
-#   unOpenedFiles=`getUnOpenedFiles "$root" "src"`
-getUnOpenedFiles() {
-    path=$1
-    dir=$2
-    p4 opened $path/$dir/... \
-        | sed -e 's/.*'$dir'/'$dir'/' -e 's/#.*$//' \
-        | perl -n -e '
-          print;
-          END
-          {
-              # Merge the opened list with all the files under BaseClasses.
-              foreach $f (`find '$path/$dir' -type f | sed -e "s/.*'$dir'/'$dir'/"`)
-              {
-                  print $f;
-              }
-          }' \
-        | sort -f \
-        | uniq -c \
-        | sed -n -e 's/\s*1\s*//p'
-}