Removing unused functionality.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 16 Aug 2013 17:33:57 +0000 (17:33 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 16 Aug 2013 17:33:57 +0000 (17:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188565 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Process.h
lib/Support/Unix/Process.inc
lib/Support/Windows/Process.inc

index 0baf7b911c164fef814c46b0588c6e8f1136919f..a23c4add429c689c0fdb16e0bb08380a2d575004 100644 (file)
@@ -155,16 +155,6 @@ public:
   static void GetTimeUsage(TimeValue &elapsed, TimeValue &user_time,
                            TimeValue &sys_time);
 
-  /// This static function will return the process' current user id number.
-  /// Not all operating systems support this feature. Where it is not
-  /// supported, the function should return 65536 as the value.
-  static int GetCurrentUserId();
-
-  /// This static function will return the process' current group id number.
-  /// Not all operating systems support this feature. Where it is not
-  /// supported, the function should return 65536 as the value.
-  static int GetCurrentGroupId();
-
   /// This function makes the necessary calls to the operating system to
   /// prevent core files or any other kind of large memory dumps that can
   /// occur when a program fails.
index 3731618db5ae7d787cd612b92350477778ecf463..538f05f980d476f8c206d574080d5e7179d2bab3 100644 (file)
@@ -140,14 +140,6 @@ void Process::GetTimeUsage(TimeValue &elapsed, TimeValue &user_time,
   llvm::tie(user_time, sys_time) = getRUsageTimes();
 }
 
-int Process::GetCurrentUserId() {
-  return getuid();
-}
-
-int Process::GetCurrentGroupId() {
-  return getgid();
-}
-
 #if defined(HAVE_MACH_MACH_H) && !defined(__GNU__)
 #include <mach/mach.h>
 #endif
index e47c4c08c7923248e2347f5056ccc511d06a0fcb..38d5bc7e11947720c8eccb1e9aa24807c48e1e33 100644 (file)
@@ -119,16 +119,6 @@ void Process::GetTimeUsage(TimeValue &elapsed, TimeValue &user_time,
   sys_time = getTimeValueFromFILETIME(KernelTime);
 }
 
-int Process::GetCurrentUserId()
-{
-  return 65536;
-}
-
-int Process::GetCurrentGroupId()
-{
-  return 65536;
-}
-
 // Some LLVM programs such as bugpoint produce core files as a normal part of
 // their operation. To prevent the disk from filling up, this configuration
 // item does what's necessary to prevent their generation.