aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2012-08-03 01:33:34 +0200
committerRobin Rosenberg <robin.rosenberg@dewire.com>2012-08-22 00:37:17 +0200
commit9570e0d4a9783df132cc117827275eb5724d41d6 (patch)
tree6865101991cae7e399dfb97d8edf1449305156fa /org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java
parentdccad56c9a8714398f813f953704a52d3aa3c0cc (diff)
downloadjgit-9570e0d4a9783df132cc117827275eb5724d41d6.tar.gz
jgit-9570e0d4a9783df132cc117827275eb5724d41d6.zip
Refactor detection of Windows platform to SystemReader
Change-Id: Id0b8aef92f10572d4f1ec198e0281162fcd7ed4e
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java
index 3b6704497c..eebaa65d08 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/util/FS_Win32.java
@@ -46,25 +46,11 @@ package org.eclipse.jgit.util;
import java.io.File;
import java.nio.charset.Charset;
-import java.security.AccessController;
-import java.security.PrivilegedAction;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
class FS_Win32 extends FS {
-
- static boolean isWin32() {
- final String osDotName = AccessController
- .doPrivileged(new PrivilegedAction<String>() {
- public String run() {
- return System.getProperty("os.name");
- }
- });
- return osDotName != null
- && StringUtils.toLowerCase(osDotName).indexOf("windows") != -1;
- }
-
FS_Win32() {
super();
}