Skip to content

Commit 01f54d2

Browse files
committed
Removing commented code. No functional changes.
1 parent 7e6dcc1 commit 01f54d2

File tree

6 files changed

+0
-33
lines changed

6 files changed

+0
-33
lines changed

cpp/iedriver/CommandHandlers/DeleteAllCookiesCommandHandler.h

-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ class DeleteAllCookiesCommandHandler : public IECommandHandler {
4747
browser_wrapper->GetCookies(&cookies);
4848
std::vector<BrowserCookie>::const_iterator it = cookies.begin();
4949
for (; it != cookies.end(); ++it) {
50-
//std::string cookie_name = it->name();
51-
//status_code = browser_wrapper->DeleteCookie(cookie_name);
5250
status_code = browser_wrapper->DeleteCookie(*it);
5351
if (status_code != WD_SUCCESS) {
5452
response->SetErrorResponse(status_code,

cpp/iedriver/CommandHandlers/DeleteCookieCommandHandler.h

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ class DeleteCookieCommandHandler : public IECommandHandler {
4848
response->SetErrorResponse(status_code, "Unable to get browser");
4949
return;
5050
}
51-
//status_code = browser_wrapper->DeleteCookie(cookie_name);
5251
BrowserCookie cookie;
5352
cookie.set_name(cookie_name);
5453
status_code = browser_wrapper->DeleteCookie(cookie);

cpp/iedriver/CookieManager.cpp

-20
Original file line numberDiff line numberDiff line change
@@ -186,26 +186,6 @@ bool CookieManager::DeleteCookie(const std::string& url,
186186
cookie.is_httponly());
187187
}
188188

189-
//bool CookieManager::DeleteCookie(const std::string& url,
190-
// const std::string& cookie_name) {
191-
//
192-
// std::wstring wide_url = StringUtilities::ToWString(url);
193-
// CComPtr<IUri> uri_pointer;
194-
// ::CreateUri(wide_url.c_str(), Uri_CREATE_ALLOW_RELATIVE, 0, &uri_pointer);
195-
//
196-
// CComBSTR host_bstr;
197-
// uri_pointer->GetHost(&host_bstr);
198-
// std::wstring wide_domain = host_bstr;
199-
//
200-
// CComBSTR path_bstr;
201-
// uri_pointer->GetPath(&path_bstr);
202-
// std::wstring wide_path = path_bstr;
203-
//
204-
// std::string domain = StringUtilities::ToString(wide_domain);
205-
// std::string path = StringUtilities::ToString(wide_path);
206-
// return this->RecursivelyDeleteCookie(url, cookie_name, domain, path, false);
207-
//}
208-
209189
bool CookieManager::RecursivelyDeleteCookie(const std::string& url,
210190
const std::string& name,
211191
const std::string& domain,

cpp/iedriver/CookieManager.h

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class CookieManager {
3737
std::vector<BrowserCookie>* all_cookies);
3838
bool SetCookie(const std::string& url, const std::string& cookie_data);
3939
bool DeleteCookie(const std::string& url, const BrowserCookie& cookie);
40-
bool DeleteCookie(const std::string& url, const std::string& cookie_name);
4140

4241
private:
4342
std::wstring SendGetCookieMessage(const std::wstring& url,

cpp/iedriver/DocumentHost.cpp

-8
Original file line numberDiff line numberDiff line change
@@ -250,14 +250,6 @@ int DocumentHost::AddCookie(const std::string& cookie,
250250
return WD_SUCCESS;
251251
}
252252

253-
//int DocumentHost::DeleteCookie(const std::string& cookie_name) {
254-
// LOG(TRACE) << "Entering DocumentHost::DeleteCookie";
255-
// // TODO: Optimize and return legitimate error conditions.
256-
// bool deletesucceeded = this->cookie_manager_->DeleteCookie(this->GetCurrentUrl(),
257-
// cookie_name);
258-
// return WD_SUCCESS;
259-
//}
260-
261253
int DocumentHost::DeleteCookie(const BrowserCookie& cookie) {
262254
LOG(TRACE) << "Entering DocumentHost::DeleteCookie";
263255
// TODO: Optimize and return legitimate error conditions.

cpp/iedriver/DocumentHost.h

-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ class DocumentHost {
6868

6969
void GetCookies(std::vector<BrowserCookie>* cookies);
7070
int AddCookie(const std::string& cookie, const bool validate_document_type);
71-
//int DeleteCookie(const std::string& cookie_name);
7271
int DeleteCookie(const BrowserCookie& cookie);
7372

7473
int SetFocusedFrameByIndex(const int frame_index);

0 commit comments

Comments
 (0)