Skip to content

Commit

Permalink
refactor: remove useless inproc implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
seven-mile committed Sep 16, 2023
1 parent cd38d37 commit 85c0033
Show file tree
Hide file tree
Showing 40 changed files with 29 additions and 13,531 deletions.
2 changes: 1 addition & 1 deletion UFCase.Host/ComponentModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include "ComponentModel.g.cpp"
#endif

#include "Utils/CbsUtil.h"
#include "Utils/ComUtil.h"

#include "StoreModel.h"

Expand Down
2 changes: 1 addition & 1 deletion UFCase.Host/PackageModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "FeatureModel.h"
#include "Utils/MallocUtil.h"
#include "Utils/CbsUtil.h"
#include "Utils/ComUtil.h"

namespace winrt::UFCase::Isolation::implementation
{
Expand Down
2 changes: 1 addition & 1 deletion UFCase.Host/SessionModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#endif

#include "CCbsUIHandler.h"
#include "Utils/CbsUtil.h"
#include "Utils/ComUtil.h"
#include "Utils/MallocUtil.h"

#include "PackageModel.h"
Expand Down
2 changes: 1 addition & 1 deletion UFCase.Host/StoreModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "ComponentModel.h"
#include "GeneratorIterable.h"

#include "Utils/CbsUtil.h"
#include "Utils/ComUtil.h"
#include "ServicingApi/Isolation.h"
#include "ServicingApi/SSShimApi.h"

Expand Down
2 changes: 1 addition & 1 deletion UFCase.Host/UFCase.Host.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
<ClInclude Include="ServicingApi\WcpDef.h" />
<ClInclude Include="SessionModel.h" />
<ClInclude Include="StoreModel.h" />
<ClInclude Include="Utils\CbsUtil.h" />
<ClInclude Include="Utils\ComUtil.h" />
<ClInclude Include="Utils\GeneratorUtil.h" />
<ClInclude Include="Utils\MallocUtil.h" />
<ClInclude Include="Utils\PathUtil.h" />
Expand Down
21 changes: 0 additions & 21 deletions UFCase.Host/Utils/CbsUtil.h → UFCase.Host/Utils/ComUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,6 @@
namespace winrt::UFCase
{

inline hstring ParseCbsTimeStampString(const wchar_t *ts_str)
{
auto timeStamp = std::wcstoull(ts_str, nullptr, 10);
LARGE_INTEGER liTmp;
liTmp.QuadPart = timeStamp;
FILETIME fileTimeTmp, fileLocalTimeTmp;
fileTimeTmp.dwLowDateTime = liTmp.LowPart;
fileTimeTmp.dwHighDateTime = liTmp.HighPart;

// Optional
FileTimeToLocalFileTime(&fileTimeTmp, &fileLocalTimeTmp);

SYSTEMTIME sysTimeTmp;
FileTimeToSystemTime(&fileLocalTimeTmp, &sysTimeTmp);

return std::format(L"{}/{:02}/{:02} {}:{:02}:{:02}", sysTimeTmp.wYear, sysTimeTmp.wMonth,
sysTimeTmp.wDay, sysTimeTmp.wHour, sysTimeTmp.wMinute,
sysTimeTmp.wSecond)
.c_str();
}

template <class T, typename IntT = ULONG, class IEnumT>
inline std::vector<winrt::com_ptr<T>> GetIEnumComPtrVector(winrt::com_ptr<IEnumT> pEnum)
{
Expand Down
59 changes: 0 additions & 59 deletions UFCase/CCbsUIHandler.h

This file was deleted.

Loading

0 comments on commit 85c0033

Please sign in to comment.