Remove unused GetUsername() function

This commit is contained in:
baldurk
2016-07-12 19:39:41 +02:00
parent 2b5e37b442
commit 99c0177cd9
5 changed files with 0 additions and 31 deletions
-1
View File
@@ -58,4 +58,3 @@ void readCapOpts(const std::string &str, CaptureOptions *opts);
// these must be defined in platform .cpps
void DisplayRendererPreview(ReplayRenderer *renderer, TextureDisplay &displayCfg, uint32_t width,
uint32_t height);
std::wstring GetUsername();
-5
View File
@@ -42,11 +42,6 @@ using std::string;
struct android_app *android_state;
string GetUsername()
{
return string("Username");
}
void DisplayRendererPreview(ReplayRenderer *renderer, TextureDisplay &displayCfg, uint32_t width,
uint32_t height)
{
-8
View File
@@ -31,14 +31,6 @@
using std::string;
string GetUsername()
{
char buf[256] = {0};
getlogin_r(buf, 255);
return string(buf, buf + strlen(buf));
}
void DisplayRendererPreview(ReplayRenderer *renderer, TextureDisplay &displayCfg, uint32_t width,
uint32_t height)
{
-8
View File
@@ -34,14 +34,6 @@
using std::string;
string GetUsername()
{
char buf[256] = {0};
getlogin_r(buf, 255);
return string(buf, buf + strlen(buf));
}
void DisplayRendererPreview(ReplayRenderer *renderer, TextureDisplay &displayCfg, uint32_t width,
uint32_t height)
{
-9
View File
@@ -216,15 +216,6 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
return DefWindowProc(hwnd, msg, wParam, lParam);
}
wstring GetUsername()
{
wchar_t username[256] = {0};
DWORD usersize = 255;
GetUserNameW(username, &usersize);
return username;
}
void DisplayRendererPreview(ReplayRenderer *renderer, TextureDisplay &displayCfg, uint32_t width,
uint32_t height)
{