Skip to content

Commit 48d55a5

Browse files
committed
Rename function, remove unused code.
1 parent b84bac9 commit 48d55a5

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

Source/CesiumEditor/Private/CesiumIonSession.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ CesiumIonSession::findToken(const FString& token) const {
451451

452452
namespace {
453453

454-
Token tokenFromSettings(UCesiumIonServer* pServer) {
454+
Token tokenFromServer(UCesiumIonServer* pServer) {
455455
Token result;
456456

457457
if (pServer) {
@@ -472,7 +472,7 @@ Future<Token> getTokenFuture(const CesiumIonSession& session) {
472472
if (tokenResponse.value) {
473473
return *tokenResponse.value;
474474
} else {
475-
return tokenFromSettings(pServer.Get());
475+
return tokenFromServer(pServer.Get());
476476
}
477477
});
478478
} else if (!pServer->DefaultIonAccessToken.IsEmpty()) {
@@ -481,12 +481,12 @@ Future<Token> getTokenFuture(const CesiumIonSession& session) {
481481
if (response.value) {
482482
return *response.value;
483483
} else {
484-
return tokenFromSettings(pServer.Get());
484+
return tokenFromServer(pServer.Get());
485485
}
486486
});
487487
} else {
488488
return session.getAsyncSystem().createResolvedFuture(
489-
tokenFromSettings(pServer.Get()));
489+
tokenFromServer(pServer.Get()));
490490
}
491491
}
492492

@@ -508,7 +508,7 @@ SharedFuture<Token> CesiumIonSession::getProjectDefaultTokenDetails() {
508508

509509
if (!this->isConnected()) {
510510
return this->getAsyncSystem()
511-
.createResolvedFuture(tokenFromSettings(this->_pServer.Get()))
511+
.createResolvedFuture(tokenFromServer(this->_pServer.Get()))
512512
.share();
513513
}
514514

Source/CesiumEditor/Private/SelectCesiumIonToken.cpp

-6
Original file line numberDiff line numberDiff line change
@@ -579,9 +579,3 @@ FText SelectCesiumIonToken::GetSpecifiedToken() const {
579579
void SelectCesiumIonToken::SetSpecifiedToken(const FText& text) {
580580
this->_specifyToken.token = text.ToString();
581581
}
582-
583-
void SelectCesiumIonToken::OnBrowseForServer() {
584-
TArray<UObject*> Objects;
585-
Objects.Add(this->_pServer.Get());
586-
GEditor->SyncBrowserToObjects(Objects);
587-
}

Source/CesiumEditor/Private/SelectCesiumIonToken.h

-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class SelectCesiumIonToken : public SWindow {
9595
ESelectInfo::Type type);
9696
FText GetSpecifiedToken() const;
9797
void SetSpecifiedToken(const FText& text);
98-
void OnBrowseForServer();
9998

10099
static TSharedPtr<SelectCesiumIonToken> _pExistingPanel;
101100

0 commit comments

Comments
 (0)