Move file type internationalization out of data model
[gitphp.git] / include / git / blob / Blob.class.php
blob:a/include/git/blob/Blob.class.php -> blob:b/include/git/blob/Blob.class.php
--- a/include/git/blob/Blob.class.php
+++ b/include/git/blob/Blob.class.php
@@ -119,43 +119,6 @@
 	}
 
 	/**
-	 * Gets a file type from its octal mode
-	 *
-	 * @param string $octMode octal mode
-	 * @param boolean $local true if caller wants localized type
-	 * @return string file type
-	 */
-	public static function FileType($octMode, $local = false)
-	{
-		$mode = octdec($octMode);
-		if (($mode & 0x4000) == 0x4000) {
-			if ($local) {
-				return __('directory');
-			} else {
-				return 'directory';
-			}
-		} else if (($mode & 0xA000) == 0xA000) {
-			if ($local) {
-				return __('symlink');
-			} else {
-				return 'symlink';
-			}
-		} else if (($mode & 0x8000) == 0x8000) {
-			if ($local) {
-				return __('file');
-			} else {
-				return 'file';
-			}
-		}
-
-		if ($local) {
-			return __('unknown');
-		} else {
-			return 'unknown';
-		}
-	}
-
-	/**
 	 * Gets the blob size
 	 *
 	 * @return integer size

comments