Skip to content

Commit

Permalink
Remove obsolete smartany wrappers.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinj committed Jun 5, 2019
1 parent ed71525 commit c12dff5
Show file tree
Hide file tree
Showing 107 changed files with 87 additions and 245 deletions.
28 changes: 0 additions & 28 deletions omaha/base/auto_any.h

This file was deleted.

1 change: 0 additions & 1 deletion omaha/base/file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
#include "omaha/base/path.h"
#include "omaha/base/reg_key.h"
#include "omaha/base/safe_format.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/string.h"
#include "omaha/base/system.h"
#include "omaha/base/timer.h"
Expand Down
2 changes: 1 addition & 1 deletion omaha/base/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include <vector>

#include "base/basictypes.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/store_watcher.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
4 changes: 0 additions & 4 deletions omaha/base/path.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,7 @@ HRESULT FindFilesEx(const CString& dir,
HRESULT ExpandStringWithSpecialFolders(CString* str) {
ASSERT(str, (L""));

#pragma warning(push)
// construction of local static object is not thread-safe
#pragma warning(disable : 4640)
static std::map<CString, CString> g_special_folders_mapping;
#pragma warning(pop)

if (g_special_folders_mapping.size() == 0) {
RET_IF_FAILED(
Expand Down
2 changes: 1 addition & 1 deletion omaha/base/proc_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
#include "omaha/base/logging.h"
#include "omaha/base/process.h"
#include "omaha/base/reg_key.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/string.h"
#include "omaha/base/utils.h"
#include "omaha/base/window_utils.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
1 change: 0 additions & 1 deletion omaha/base/process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
#include "omaha/base/error.h"
#include "omaha/base/logging.h"
#include "omaha/base/safe_format.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/string.h"
#include "omaha/base/system.h"
#include "omaha/base/system_info.h"
Expand Down
2 changes: 1 addition & 1 deletion omaha/base/process.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <vector>
#include "base/basictypes.h"
#include "omaha/base/constants.h"
#include "omaha/base/scoped_any.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/queue_timer_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#include <iostream>
#include <memory>

#include "omaha/base/scoped_any.h"
#include "omaha/base/timer.h"
#include "omaha/testing/unit_test.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/reactor_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

#include "base/rand_util.h"
#include "omaha/base/event_handler.h"
#include "omaha/base/scoped_any.h"
#include "omaha/testing/unit_test.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
1 change: 0 additions & 1 deletion omaha/base/reg_key.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <intsafe.h>

#include "omaha/base/logging.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/static_assert.h"
#include "omaha/base/string.h"
#include "omaha/base/synchronized.h"
Expand Down
2 changes: 1 addition & 1 deletion omaha/base/reg_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
#include "base/basictypes.h"
#include "omaha/base/debug.h"
#include "omaha/base/logging.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/static_assert.h"
#include "omaha/base/store_watcher.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/registry_monitor_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#include "omaha/base/error.h"
#include "omaha/base/logging.h"
#include "omaha/base/reg_key.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/synchronized.h"
#include "omaha/base/thread.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/registry_monitor_manager_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#include <windows.h>
#include <limits.h>
#include "base/basictypes.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/reactor.h"
#include "omaha/base/reg_key.h"
#include "omaha/base/registry_monitor_manager.h"
#include "omaha/base/thread.h"
#include "omaha/base/utils.h"
#include "omaha/testing/unit_test.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
36 changes: 0 additions & 36 deletions omaha/base/scoped_any.h

This file was deleted.

2 changes: 1 addition & 1 deletion omaha/base/scoped_impersonation.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "omaha/base/debug.h"
#include "omaha/base/error.h"
#include "omaha/base/logging.h"
#include "omaha/base/scoped_any.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/scoped_impersonation_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

#include <windows.h>
#include "base/basictypes.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/scoped_impersonation.h"
#include "omaha/base/vista_utils.h"
#include "omaha/testing/unit_test.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/shell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
#include "omaha/base/logging.h"
#include "omaha/base/path.h"
#include "omaha/base/reg_key.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/string.h"
#include "omaha/base/system.h"
#include "omaha/base/utils.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
4 changes: 3 additions & 1 deletion omaha/base/shutdown_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
#ifndef OMAHA_BASE_SHUTDOWN_HANDLER_H_
#define OMAHA_BASE_SHUTDOWN_HANDLER_H_

#include <objbase.h>
#include <windows.h>

#include "base/basictypes.h"
#include "omaha/base/event_handler.h"
#include "omaha/base/scoped_any.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
1 change: 0 additions & 1 deletion omaha/base/signatures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include "omaha/base/debug.h"
#include "omaha/base/error.h"
#include "omaha/base/logging.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/security/sha256.h"
#include "omaha/base/security/sha.h"
#include "omaha/base/string.h"
Expand Down
2 changes: 1 addition & 1 deletion omaha/base/signatures.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <atlstr.h>
#include <vector>
#include "base/basictypes.h"
#include "omaha/base/scoped_any.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/thread_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <objbase.h>

#include "base/basictypes.h"
#include "omaha/base/scoped_any.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/user_info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "omaha/base/constants.h"
#include "omaha/base/debug.h"
#include "omaha/base/error.h"
#include "omaha/base/scoped_any.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/user_info_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
// ========================================================================

#include "omaha/base/constants.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/scoped_impersonation.h"
#include "omaha/base/user_info.h"
#include "omaha/testing/unit_test.h"
#include "omaha/third_party/smartany/scoped_any.h"

// We can't make any assumption about the context the unit test runs, however
// we expect the calls to succeed.
Expand Down
2 changes: 1 addition & 1 deletion omaha/base/user_rights.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
#include "omaha/base/logging.h"
#include "omaha/base/reg_key.h"
#include "omaha/base/scope_guard.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/system_info.h"
#include "omaha/base/vistautil.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
1 change: 0 additions & 1 deletion omaha/base/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
#include "omaha/base/safe_format.h"
#include "omaha/base/scope_guard.h"
#include "omaha/base/shell.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/string.h"
#include "omaha/base/system.h"
#include "omaha/base/system_info.h"
Expand Down
2 changes: 1 addition & 1 deletion omaha/base/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
#include "omaha/base/error.h"
#include "omaha/base/logging.h"
#include "omaha/base/reg_key.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/static_assert.h"
#include "omaha/base/user_info.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/utils_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
#include "omaha/base/time.h"
#include "omaha/base/user_info.h"
#include "omaha/base/utils.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/system_info.h"
#include "omaha/base/vistautil.h"
#include "omaha/testing/unit_test.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/vista_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
#include "omaha/base/process.h"
#include "omaha/base/reg_key.h"
#include "omaha/base/scope_guard.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/smart_handle.h"
#include "omaha/base/synchronized.h"
#include "omaha/base/system.h"
#include "omaha/base/system_info.h"
#include "omaha/base/user_info.h"
#include "omaha/base/user_rights.h"
#include "omaha/base/utils.h"
#include "omaha/third_party/smartany/scoped_any.h"

#define LOW_INTEGRITY_SID_W NOTRANSL(L"S-1-16-4096")

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/vista_utils_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
#include <windows.h>
#include "omaha/base/app_util.h"
#include "omaha/base/path.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/string.h"
#include "omaha/base/utils.h"
#include "omaha/base/vista_utils.h"
#include "omaha/base/vistautil.h"
#include "omaha/testing/unit_test.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/base/xml_utils_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
#include "omaha/base/file.h"
#include "omaha/base/string.h"
#include "omaha/base/utils.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/xml_utils.h"
#include "omaha/testing/unit_test.h"
#include "omaha/third_party/smartany/scoped_any.h"

namespace omaha {

Expand Down
2 changes: 1 addition & 1 deletion omaha/client/install.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include "omaha/base/process.h"
#include "omaha/base/reg_key.h"
#include "omaha/base/safe_format.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/string.h"
#include "omaha/base/time.h"
#include "omaha/base/utils.h"
Expand All @@ -43,6 +42,7 @@
#include "omaha/common/oem_install_utils.h"
#include "omaha/common/ping.h"
#include "omaha/setup/setup_metrics.h"
#include "omaha/third_party/smartany/scoped_any.h"
#include "omaha/ui/splash_screen.h"

namespace omaha {
Expand Down
2 changes: 1 addition & 1 deletion omaha/common/crash_utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
#include "omaha/base/omaha_version.h"
#include "omaha/base/path.h"
#include "omaha/base/safe_format.h"
#include "omaha/base/scoped_any.h"
#include "omaha/base/user_info.h"
#include "omaha/base/vistautil.h"
#include "omaha/common/command_line_builder.h"
#include "omaha/common/config_manager.h"
#include "omaha/common/goopdate_utils.h"
#include "omaha/third_party/smartany/scoped_any.h"
#include "third_party/breakpad/src/client/windows/common/ipc_protocol.h"
#include "third_party/breakpad/src/client/windows/crash_generation/client_info.h"

Expand Down
Loading

0 comments on commit c12dff5

Please sign in to comment.