mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 00:50:40 +00:00
Remove unused GetUsername() function
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user